<div id="forum">

<include target="_header.html" />

<form action="./" method="post" onsubmit="return procFilter(this, window.insert)" id="fo_write" class="forumWrite">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
<input type="hidden" name="document_srl" value="{$document_srl}" />


<table border="0" cellspacing="0" cellpadding="0" class="threadWrite">
	<caption class="blind">{$lang->write_new_thread}</caption>
	<colgroup>
		<col width="10%" />
		<col width="" />
	</colgroup>

	<tbody>

	<tr class="tr_header">
		<td colspan="2">{$lang->write_new_thread}</td>
	</tr>
	<tr class="single_line">
		<th class="td_col1"><label for="title_post">{$lang->title} </label></th>
		<td class="td_col2">
			<input type="text" name="title" class="inputText" value="{htmlspecialchars($oDocument->getTitleText())}" id="title_post"/>
		</td>
	</tr>
	<tr class="single_line">
		<th class="td_col1"><label for="category_srl">{$lang->category} </label></th>
		<td class="td_col2">
			<select name="category_srl" class="select" id="category_srl">
				<option value="">{$lang->category}</option>
				<!--@foreach($category_list as $val)-->
				<option <!--@if(!$val->grant)-->disabled="disabled"<!--@endif--> value="{$val->category_srl}" <!--@if($val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl'))-->selected="selected"<!--@endif-->>
					{str_repeat(" -->",$val->depth)} {$val->title} ({$val->document_count})
				</option>
				<!--@endforeach-->
			</select>



			<!--@if($is_logged)-->
			<!--@if($grant->manager || $grant->moderator)-->
				<label for="is_notice">{$lang->notice}</label>
				<input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" />&nbsp;&nbsp;

				<label for="allow_comment">{$lang->allow_comment}</label>
				<input type="checkbox" name="allow_comment" value="Y" <!--@if($oDocument->allowComment())-->checked="checked"<!--@end--> id="allow_comment" />&nbsp;&nbsp;
			<!--@end-->
				<label for="notify_message">{$lang->notify}</label>
				<input type="checkbox" name="notify_message" value="Y" <!--@if($isNotified)-->checked="checked"<!--@end--> id="notify_message" class="inputCheck" />

			<!--@endif-->

		</td>
	</tr>
	<tr class="multi_line">
		<td class="td_col2" colspan="2" style="padding:0px 10px 0px 10px;">{$oDocument->getEditor()}</td>
	</tr>
	<tr class="single_line">
		<td colspan="2" class="td_submit" style="padding:10px">
			<div style="text-align:left">
				<!--@if($is_logged)-->

				<a href="#" class="button blue" onclick="doDocumentSave(this); return false;" ><span>{$lang->cmd_temp_save}</span></a>
				<a href="#" class="button blue" onclick="doDocumentLoad(this); return false;" ><span >{$lang->cmd_load}</span></a>

				<!--@end-->
				<a href="#" class="button red" onclick="jQuery('#fo_write').submit();return false;" ><span>{$lang->cmd_registration}</span></a>
				<span class="button"><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','')}'" /></span>

			</div>
		</td>
	</tr>


	<!--@if(count($extra_keys))-->

	<!--@foreach($extra_keys as $key => $val)-->
	<tr class="single_line tr_extra">
		<th>{$val->name} <!--@if($val->is_required=='Y')--><em>*</em><!--@end--></th>
		<td>{$val->getFormHTML()}</td>
	</tr>
	<!--@endforeach-->
	<!--@endif-->



	</tbody>

</table>
<div class="table_ctrlbar">
	<div class="ctrlbar_right"><span></span></div><!-- //ctrlbar_right -->
</div> <!-- //table_ctrlbar -->
 </form>
<include target="_footer.html" />
</div>